Skip to content

feat(id): invite capability_pin term + redemption decision (#5959 §7) - #13150

Merged
dezren39 merged 1 commit into
mainfrom
lane-la-12922
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-la-12922

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

For #12922 — the first landable slice per the dependency verdict recorded there: #12983 (the #5751 terms extension) has landed, so the pin has a terms type to live on.

What lands

  • CapabilityPin { release_identity, table_version } as an optional term on InviteTerms and InviteBody (v2 postcard form; v1 bodies read as unpinned). The pin carries an identity and a version, never the message set — the pinned release's registry record (id: design: capability model — requested vs discovered-used sets, registry listing, custom-compiled platforms #5958 §4) is immutable and content-addressed, so the set is recomputed from the identity. The every-term round-trip test asserts the body stays inside the 512-byte budget with a pin attached.
  • Minting: InviteTerms::with_capability_pin attaches at issuance; sign_terms signs the pin into the body; child_terms takes the pin explicitly, like the other optional terms.
  • Redemption: InviteBody::pin_redemption(lookup, current) — the id: design: capability-change notices on reconnect — expansion and sideways changes #5959 §7 decision as a pure function of (pinned set, current set, fetch outcome) over the new ReleaseMessageSetLookup seam:
    • no pin → NoPin
    • pinned record unfetchable → PinUnusable (the pin is ignored; an ordinary first connect)
    • current set covered by the pinned set → SeedBaseline (the pinned set narrowed to the current set — never wider than either)
    • otherwise → NoticeBeforeConnect (the uncovered part of the current set)

Coverage here is set inclusion over the sets the lookup returns; the subsumption-aware comparison of #5999 §6 is #12921's layer, which also owns the baseline store and the notice surface that consume this decision. #12922 stays open on that wiring.

Verification

  • cargo test -p id-directory — 287 passed / 0 failed (281 on the base + 6 new: issuance attach, the issue's four oracles, unpinned → NoPin; the every-term round-trip now carries a pin). Re-run green after rebase onto current main.
  • cargo fmt -p id-directory -- --check — clean.
  • cargo clippy -p id-directory --all-targets — no warning sites in the changed files (one doc-paragraph site found in the first pass and fixed).
  • Facade: cargo check -p id --test invites compiles clean against the new API. The full facade test execution was not run: its build compiles the whole workspace graph and did not finish under the current multi-lane broker load; the compile check plus the grep-verified absence of literal InviteBody/InviteTerms constructions or child_terms callers outside this module stand in for it, and the crate suite above covers the behavior.

Get evidence
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

For #12922. The v2 invite terms and body gain the optional
capability_pin { release_identity, table_version }:
InviteTerms::with_capability_pin attaches it at issuance, sign_terms
signs it into the body, child_terms takes it explicitly, and v1 bodies
read as unpinned. The pin fits the 512-byte body budget as an identity
plus a version; the message set itself is never carried.

InviteBody::pin_redemption is the #5959 §7 redemption decision as a
pure function of (pinned set, current set, fetch outcome) over the
ReleaseMessageSetLookup seam: no pin -> NoPin; record unfetchable ->
PinUnusable (an ordinary first connect); current set covered ->
SeedBaseline (the pinned set narrowed to the current set); outgrown ->
NoticeBeforeConnect (the uncovered part). The baseline store and the
notice surface that consume the decision are #12921's.

Tests: issuance attach, all four named oracles, unpinned -> NoPin, and
the every-term round-trip now carries a pin. id-directory 287/287.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fa681f72-59c7-4b9c-9c82-0caf82862848
Commits

Reviewing files that changed from the base of the PR and between c2ce536 and 5fb8855.

Files selected for processing: 2

  • pkgs/id/crates/id-directory/src/invites/event.rs
  • pkgs/id/crates/id-directory/src/invites/mod.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T09:19:13.672648Z 5fb8855 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 merged commit d220c7b into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-la-12922 branch November 23, 2026 09:18
dezren39 added a commit that referenced this pull request Nov 24, 2026
Standalone 9-point sufficient-design record for the invite
capability_pin term, extracted from the #5959 §7 design of record
(AUDIT-7 Lane 6 DESIGN-GAPS found #12922 had no design document of
its own). Records slice 1 as landed (PR #13150) with file:line
evidence, slices 2-3 dependency-ordered against #12921, open
questions Q1-Q4 each naming a decider.

Refs #12922
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant